package com.ym.core.es.domain.index;

import com.ym.common.constant.Constants;
import com.ym.core.es.annotation.HeightWord;
import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * 全局，高亮索引实体
 *
 * @author 625
 */
@Data
@Document(indexName = Constants.IndexDataName.GLOBAL_SEARCH_WORD_INDEX)
public class GlobalSearchWordIndex extends BaseIdIndex {

	/**
	 * 业务ID
	 */
	@Field(type = FieldType.Long)
	private Long busId;

	/**
	 * 数据类型
	 */
	@Field(type = FieldType.Keyword)
	private String dataType;

	/**
	 * 表名
	 */
	@Field(type = FieldType.Keyword)
	private String tableName;


	/**
	 * 字段
	 */
	@Field(type = FieldType.Keyword)
	private String fieldName;

	/**
	 * 字段值
	 */
	@HeightWord
	private String fieldValue;

}
